//
//  OrderModel.h
//  RPay
//
//  Created by CharlieLiao on 2017/7/22.
//  Copyright © 2017年 Charlie. All rights reserved.
//

#import <CTNetworking/CTNetworking.h>

typedef NS_ENUM(NSUInteger, OrderStatus) {
    OrderStatusNonPay,
    OrderStatusDidPay,
};


@interface OrderGoodsModel : NSObject
///商品ID
@property (nonatomic, copy) NSString *goodsId;
///商品名称
@property (nonatomic, copy) NSString *goodsName;
///商品单价
@property (nonatomic, copy) NSString *perAmount;
///商品数量
@property (nonatomic, assign) NSUInteger goodsNum;


@end

@interface OrderModel : NSObject
/// 订单编号
@property (nonatomic, copy) NSString *orderId;
/// 商品总价
@property (nonatomic, copy) NSString *totalAmount;
/// 订单商品数量
@property (nonatomic, copy) NSString *totalNumbers;
/// 订单状态
@property (nonatomic, assign) OrderStatus status;
/// 订单时间
@property (nonatomic, copy) NSString *orderTime;

@property (nonatomic, strong) NSArray <OrderGoodsModel*>*detailList;

@end


@interface OrderListModel : NSObject
/// 总页数
@property (nonatomic, assign) NSInteger total;
///// 总收入
//@property (nonatomic, copy) NSString *amountIn;
/// 总支出
@property (nonatomic, copy) NSString *amountOut;

@property (nonatomic, strong) NSArray <OrderModel*>*content;

@end

@interface OrderModelReformer : NSObject  <CTAPIManagerDataReformer>

@end
